import { createStore, combineReducers } from "redux";

function countReducer(state = '', action){
    switch (action.type) {
           case "ADD":
       return state + action.value
            default:
       return state 
    }
}
var reducers = combineReducers({
    count: countReducer,
})
export default createStore(reducers)